Skip to content

fix(feed): drop force-dynamic so the hourly revalidate actually applies - #71

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
waterlemonnn:fix/feed-revalidate-conflict
Aug 7, 2026
Merged

fix(feed): drop force-dynamic so the hourly revalidate actually applies#71
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
waterlemonnn:fix/feed-revalidate-conflict

Conversation

@waterlemonnn

Copy link
Copy Markdown
Contributor

`app/feed.xml/route.ts` declared both `dynamic = "force-dynamic"` and `revalidate = 3600`. The two contradict each other -- `force-dynamic` opts the route out of caching entirely, so `revalidate` never had any effect and the feed was rebuilt from Supabase on every request, including every feed-reader poll.

Went with the hourly-cache interpretation per the issue's own reasoning (cases need maintainer approval before they can appear, so nothing changes minute-to-minute) and dropped `force-dynamic`, keeping `revalidate = 3600`.

Didn't touch `app/sitemap.ts` (also mentioned in the issue) -- that's #58's territory and already has an open PR.

Verified: `npm run lint` and `npx tsc --noEmit` are clean. Couldn't verify against a live feed request (`npm run dev` + fetch `/feed.xml`) since this environment has no Supabase project configured. `npx prettier --check .` and `npm run build` both fail here, but confirmed via `git stash` that both failures are pre-existing on main (unrelated formatting warning on this file, and a missing `RESEND_API_KEY` at build time) -- not introduced by this change.

Closes #55

force-dynamic and revalidate contradicted each other, forcing feed.xml
to regenerate from Supabase on every request instead of caching hourly
as intended.
@royalpinto007
royalpinto007 merged commit 8bcb8ed into AgentPostmortem:main Aug 7, 2026
11 checks passed
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

This is in, @waterlemonnn. Really appreciate it.

agentpostmortem gets better every time someone outside the repo digs in like this.

If you find agentpostmortem useful, consider dropping a star. It helps more people find it.

Happy to see more from you whenever you have the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feed.xml sets both force-dynamic and revalidate, so the revalidate never applies

2 participants